package com.sky.api.coupon;

import com.sky.dto.SkuReductionDTO;
import com.sky.dto.SmsSpuBoundsDTO;
import com.sky.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "sky-mall-coupon",contextId = "smsCoupon")
public interface CouponFeignService {

    @PostMapping("/skuFullReduction/addSkuReduction")
    R addSkuReduction(@RequestBody SkuReductionDTO skuReductionDTO);

    @PostMapping("/spuBound/add")
    R addSpuBounds(@RequestBody SmsSpuBoundsDTO smsSpuBoundsDTO);
}
